<?php
    namespace app\controller;

    use app\BaseController;
    use think\exception\ValidateException;

    

    class Login extends BaseController{
        private static $CODE="This is CODE";
        public function login(){
            try{
                
            }catch(ValidateException $e){
                dump($e->getError());
            }
            return '<h2>代码'.(self::$CODE).'</h2>';
        }
    }

?>